package com.mty.kjtest.Model;

import java.util.List;

/**
 * Created by 天宇 on 2017/6/30.
 */
public class MovieEntity {



    private int count;
    private int start;
    private int total;
    private String title;
    private List<SubjectsBean> subjects;

    public int getCount() { return count;}

    public void setCount(int count) { this.count = count;}

    public int getStart() { return start;}

    public void setStart(int start) { this.start = start;}

    public int getTotal() { return total;}

    public void setTotal(int total) { this.total = total;}

    public String getTitle() { return title;}

    public void setTitle(String title) { this.title = title;}

    public List<SubjectsBean> getSubjects() { return subjects;}

    public void setSubjects(List<SubjectsBean> subjects) { this.subjects = subjects;}

    public static class SubjectsBean {


        private RatingBean rating;
        private String title;
        private int collect_count;
        private String original_title;
        private String subtype;
        private String year;
        private ImagesBean images;
        private String alt;
        private String id;
        private List<String> genres;
        private List<CastsBean> casts;
        private List<DirectorsBean> directors;

        public RatingBean getRating() { return rating;}

        public void setRating(RatingBean rating) { this.rating = rating;}

        public String getTitle() { return title;}

        public void setTitle(String title) { this.title = title;}

        public int getCollect_count() { return collect_count;}

        public void setCollect_count(int collect_count) { this.collect_count = collect_count;}

        public String getOriginal_title() { return original_title;}

        public void setOriginal_title(String original_title) { this.original_title = original_title;}

        public String getSubtype() { return subtype;}

        public void setSubtype(String subtype) { this.subtype = subtype;}

        public String getYear() { return year;}

        public void setYear(String year) { this.year = year;}

        public ImagesBean getImages() { return images;}

        public void setImages(ImagesBean images) { this.images = images;}

        public String getAlt() { return alt;}

        public void setAlt(String alt) { this.alt = alt;}

        public String getId() { return id;}

        public void setId(String id) { this.id = id;}

        public List<String> getGenres() { return genres;}

        public void setGenres(List<String> genres) { this.genres = genres;}

        public List<CastsBean> getCasts() { return casts;}

        public void setCasts(List<CastsBean> casts) { this.casts = casts;}

        public List<DirectorsBean> getDirectors() { return directors;}

        public void setDirectors(List<DirectorsBean> directors) { this.directors = directors;}

        public static class RatingBean {
            /**
             * max : 10
             * average : 9.6
             * stars : 50
             * min : 0
             */

            private int max;
            private double average;
            private String stars;
            private int min;

            public int getMax() { return max;}

            public void setMax(int max) { this.max = max;}

            public double getAverage() { return average;}

            public void setAverage(double average) { this.average = average;}

            public String getStars() { return stars;}

            public void setStars(String stars) { this.stars = stars;}

            public int getMin() { return min;}

            public void setMin(int min) { this.min = min;}

            @Override
            public String toString() {
                return "RatingBean{" +
                       "max=" + max +
                       ", average=" + average +
                       ", stars='" + stars + '\'' +
                       ", min=" + min +
                       '}';
            }
        }

        public static class ImagesBean {
            /**
             * small : https://img3.doubanio.com/view/movie_poster_cover/ipst/public/p480747492.webp
             * large : https://img3.doubanio.com/view/movie_poster_cover/lpst/public/p480747492.webp
             * medium : https://img3.doubanio.com/view/movie_poster_cover/spst/public/p480747492.webp
             */

            private String small;
            private String large;
            private String medium;

            public String getSmall() { return small;}

            public void setSmall(String small) { this.small = small;}

            public String getLarge() { return large;}

            public void setLarge(String large) { this.large = large;}

            public String getMedium() { return medium;}

            public void setMedium(String medium) { this.medium = medium;}

            @Override
            public String toString() {
                return "ImagesBean{" +
                       "small='" + small + '\'' +
                       ", large='" + large + '\'' +
                       ", medium='" + medium + '\'' +
                       '}';
            }
        }

        public static class CastsBean {
            /**
             * alt : https://movie.douban.com/celebrity/1054521/
             * avatars : {"small":"https://img3.doubanio.com/img/celebrity/small/17525.jpg","large":"https://img3.doubanio.com/img/celebrity/large/17525.jpg","medium":"https://img3.doubanio.com/img/celebrity/medium/17525.jpg"}
             * name : 蒂姆·罗宾斯
             * id : 1054521
             */

            private String alt;
            private AvatarsBean avatars;
            private String name;
            private String id;

            public String getAlt() { return alt;}

            public void setAlt(String alt) { this.alt = alt;}

            public AvatarsBean getAvatars() { return avatars;}

            public void setAvatars(AvatarsBean avatars) { this.avatars = avatars;}

            public String getName() { return name;}

            public void setName(String name) { this.name = name;}

            public String getId() { return id;}

            public void setId(String id) { this.id = id;}

            public static class AvatarsBean {
                /**
                 * small : https://img3.doubanio.com/img/celebrity/small/17525.jpg
                 * large : https://img3.doubanio.com/img/celebrity/large/17525.jpg
                 * medium : https://img3.doubanio.com/img/celebrity/medium/17525.jpg
                 */

                private String small;
                private String large;
                private String medium;

                public String getSmall() { return small;}

                public void setSmall(String small) { this.small = small;}

                public String getLarge() { return large;}

                public void setLarge(String large) { this.large = large;}

                public String getMedium() { return medium;}

                public void setMedium(String medium) { this.medium = medium;}

                @Override
                public String toString() {
                    return "AvatarsBean{" +
                           "small='" + small + '\'' +
                           ", large='" + large + '\'' +
                           ", medium='" + medium + '\'' +
                           '}';
                }
            }

            @Override
            public String toString() {
                return "CastsBean{" +
                       "alt='" + alt + '\'' +
                       ", avatars=" + avatars +
                       ", name='" + name + '\'' +
                       ", id='" + id + '\'' +
                       '}';
            }
        }

        public static class DirectorsBean {
            /**
             * alt : https://movie.douban.com/celebrity/1047973/
             * avatars : {"small":"https://img3.doubanio.com/img/celebrity/small/230.jpg","large":"https://img3.doubanio.com/img/celebrity/large/230.jpg","medium":"https://img3.doubanio.com/img/celebrity/medium/230.jpg"}
             * name : 弗兰克·德拉邦特
             * id : 1047973
             */

            private String alt;
            private AvatarsBeanX avatars;
            private String name;
            private String id;

            public String getAlt() { return alt;}

            public void setAlt(String alt) { this.alt = alt;}

            public AvatarsBeanX getAvatars() { return avatars;}

            public void setAvatars(AvatarsBeanX avatars) { this.avatars = avatars;}

            public String getName() { return name;}

            public void setName(String name) { this.name = name;}

            public String getId() { return id;}

            public void setId(String id) { this.id = id;}

            public static class AvatarsBeanX {
                /**
                 * small : https://img3.doubanio.com/img/celebrity/small/230.jpg
                 * large : https://img3.doubanio.com/img/celebrity/large/230.jpg
                 * medium : https://img3.doubanio.com/img/celebrity/medium/230.jpg
                 */

                private String small;
                private String large;
                private String medium;

                public String getSmall() { return small;}

                public void setSmall(String small) { this.small = small;}

                public String getLarge() { return large;}

                public void setLarge(String large) { this.large = large;}

                public String getMedium() { return medium;}

                public void setMedium(String medium) { this.medium = medium;}

                @Override
                public String toString() {
                    return "AvatarsBeanX{" +
                           "small='" + small + '\'' +
                           ", large='" + large + '\'' +
                           ", medium='" + medium + '\'' +
                           '}';
                }


            }

            @Override
            public String toString() {
                return "DirectorsBean{" +
                       "alt='" + alt + '\'' +
                       ", avatars=" + avatars +
                       ", name='" + name + '\'' +
                       ", id='" + id + '\'' +
                       '}';
            }
        }

        @Override
        public String toString() {
            return "SubjectsBean{" +
                   "rating=" + rating +
                   ", title='" + title + '\'' +
                   ", collect_count=" + collect_count +
                   ", original_title='" + original_title + '\'' +
                   ", subtype='" + subtype + '\'' +
                   ", year='" + year + '\'' +
                   ", images=" + images +
                   ", alt='" + alt + '\'' +
                   ", id='" + id + '\'' +
                   ", genres=" + genres +
                   ", casts=" + casts +
                   ", directors=" + directors +
                   '}';
        }
    }

    @Override
    public String toString() {
        return "MovieEntity{" +
               "count=" + count +
               ", start=" + start +
               ", total=" + total +
               ", title='" + title + '\'' +
               ", subjects=" + subjects +
               '}';
    }
}
